<?xml version="1.0" encoding="UTF-8" ?>

<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:XSWeeks="http://rpmestre.net/xscrawler">

  <xsl:namespace-alias stylesheet-prefix="XSWeeks"  result-prefix="xsl"/>
	
	<xsl:output method="html" indent="yes"/>
	<xsl:template match="/">			
			 
		<html>
			<head>
				<title>XpertStats XSCrawler - Jornadas Liga Zon Sagres</title>
				<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
				<link rel="shortcut icon" href="../imagens/template/logo.ico"/>
				<link rel="icon" type="image/gif" href="../imagens/template/logo.ico"/>
				<script language="JavaScript" src="../calendario.js"></script>
				<link href="../style.css" rel="stylesheet" type="text/css" />
				<link href="../style2.css" rel="stylesheet" type="text/css" /> 
				<link href="../menubuttons.css" rel="stylesheet" type="text/css" />
				<link href="../menu.css" rel="stylesheet" type="text/css" />
				<link href="../fbstyle.css" rel="stylesheet" type="text/css" />
			</head>
			<body>
			
				<div id="wrap">
					<div id="header"><div id="headerH"><div id="logo"><a href="index.php"><img src="../imagens/template/logo.png"/></a></div></div></div>   
					<div id="menuD"><div id="menuB">
						<div id="menu">        
							<a class="active"><span >XSCRAWLER MENU</span></a> 						
							<a href="../index.php"><span>Home</span></a> 
							<a href="/xscrawler/xsweeks.php"><span>Actualizar Resultados</span></a>						
						</div>
					</div></div>
					<div id="main-col" style="padding-top:10px;">
						
					<h2 style="padding-bottom:10px">Actualização de Resultados</h2>
					
			       <div class="roundsection" style="width: 500px; padding:10px;">   
						<h4>Seleccione a jornada:</h4>		
					
						<form method="get" name="weekSelection" action="xsweekdetails.php" style="padding:10px;">
							<input type="hidden" name="c" value="8"/>
            				<select name="w">  
									<xsl:for-each select="XSWeeks:XSWeeks/XSWeeks:week">
										<xsl:variable name="weekID" select="substring-after(@id,'_')"/>
										<xsl:variable name="weekDescription" select="XSWeeks:weekDescription"/>
										<option value="{$weekID}"><xsl:value-of select="concat(XSWeeks:competition,' ', XSWeeks:season, ' week ',XSWeeks:weekDescription)"/></option>
									</xsl:for-each>
							</select> 
							<br/>
							<br/>
							<br/>
							<p align="center"><button type="button" class="facebooked" onclick="javascript:document.weekSelection.submit()">Enviar</button></p>
						</form>
					</div>
						
						
					</div>    
				</div>
				<div id="footer"><div id="footerD">
					<div id="footerF" class="aligned">
					</div>
					<div id="footerS" class="aligned">XS v1.4 Lite</div> 
				</div></div>
			</body>
		</html>

		
	</xsl:template>

</xsl:stylesheet>

